package com.htl.exampro.paper.pojo.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.htl.exampro.base.model.PageParams;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 试卷试题关联表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "PaperQuestionPageParam", description = "试卷试题关联PageParam")
public class PaperQuestionPageParam extends PageParams implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 关联ID
     */
    @Schema(description = "关联ID")
    private Long relatedId;

    /**
     *
     */
    @Schema(description = "试卷ID")
    private Long paperId;

    /**
     * 关联试题ID
     */
    @Schema(description = "试题ID")
    private Long questionId;

    /**
     * 题目分值
     */
    @Schema(description = "题目分数")
    private Integer score;

    /**
     * 试题版本
     */
    @Schema(description = "试题版本")
    private Integer version;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createdPerson;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private String updatedPerson;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
